package com.lsu.state.experiment;

/**
 * 测试类
 *
 * @Author wang suo
 * @Date 2020/12/26 0026 16:06
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        Context context = new Context();
        context.setBaseState(new NoCoinState());
        // 连续投两个1块钱
        //context.insertOneCoin();
        //context.insertOneCoin();
        // 投一个五毛的和一个一块的
        context.insertHalfCoin();
        context.insertOneCoin();
    }
}
